// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

import AbstractModule, { Module } from "../../resources/framework/base/mvvm/AbstractModule";
import SceneManager from "../../resources/framework/base/singles/SceneManager";

const {ccclass, property} = cc._decorator;
@Module('lobby', true)
@ccclass
export default class lobby extends AbstractModule {

    protected clear(): void {
        
    }
    
    onLoad(): void {
        this.notify.on('scene', 'enter', this.enter, this);
    }

    enter() {
        SceneManager.instance.loadScene(this.names, this.names);
    }
}
